<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>

	<div align="center" class="DivModalPesq">
		<h:form id="formComprLista">
			<div align="left" class="DivAdic" style="margin-top: 24px;">
				<h:outputText value="#{message.msg_filtro}" styleClass="LabelFont" />
			</div>
			<div align="left" class="DivAdic">
				<p:selectOneMenu value="#{solicitaTela.comboModal}" effect="fade"
					style="font-size: 14px;" size="8">
					<f:selectItem itemLabel="#{message.msg_nome}" itemValue="1"
						style="font-size: 14px;" />
					<f:selectItem itemLabel="#{message.msg_codigo}" itemValue="2"
						style="font-size: 14px;" />
				</p:selectOneMenu>
			</div>
			<div align="left" class="DivAdic">
				<p:inputText value="#{solicitaTela.campoPesqui}"
					styleClass="LabelFont" style="font-size: 14px;" required="false"
					size="15" maxlength="30" />
				<p:commandButton id="pComp" icon="ui-icon-search"
					title="#{message.botao_pesquisar}" styleClass="ButtonPesq"
					action="#{solicitaTela.pesqComprador}" update="comps2"
					global="false" />
			</div>
			<br />
			<p:dataTable id="comps2" var="comp" value="#{solicitaTela.compModel}"
				paginator="false" rows="20"
				selection="#{listaSolicitaTela.solicitacao.comprador}"
				selectionMode="single" emptyMessage="#{message.msg_semvalores}">
				<p:ajax event="rowSelect" update=":formEditaSolicita:iEComp"
					oncomplete="dlg13.hide()" process="@this,:formEditaSolicita:iEComp"
					global="false" />
				<p:column headerText="#{message.msg_codigo}" styleClass="LabelFont">
					<h:outputText value="#{comp.codigo}" size="15"
						styleClass="LabelFont" />
				</p:column>

				<p:column headerText="#{message.msg_nome}" styleClass="LabelFont">
					<h:outputText value="#{comp.nome}" size="30" styleClass="LabelFont" />
				</p:column>
			</p:dataTable>
		</h:form>
	</div>


</h:body>
</html>